n = 5;
t = [-10.0 -10.0 -10.0 -10.0 -10.0 -6.0 -4.0 -2.0 0.1 2.0 4.0 6.0 10.0 10.0 10.0 10.0 10.0];
P = [ 
    
     -10.0 -8.66666667 -6.66666667 -4.0 -2.0 0.0 2.0 4.0 6.66666667 8.66666667  10.0;
     
    4.53978687024e-05 0.00237417838865 -0.00466596676811 0.0144030879539 0.0502036110447 ...
    0.5 0.949796388955 0.985596912046 1.00466596677 0.997625821611 0.999954602131 ...
    ];

p = linspace(-10,10);
X = bspline_deboor(n,t,P, p);
Xt = bspline_deboor(n,t,P, [-0.6]);

figure;
hold all;
plot(P(1,:), P(2,:), 'r-o');
plot(X(1,:), X(2,:), 'b-');
plot(Xt(1,:), Xt(2,:), 'go');
hold off;